<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/10/22
 * Time: 16:04
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;


class Enterprise extends Base
{
    protected $rule = [
        "number" => "require|integer",
        "old_price" => "require|float",
        "price" => "require|float",
        "service"=>"require"
    ];
    protected $message = [
        "number.require" => "请输入服务次数",
        "number.integer" => "服务次数类型错误",
        "old_price.require" => "请输入原价",
        "old_price.float" => "原价错误",
        "price.require" => "请输入现价",
        "price.float" => "现价类型错误",
        "service.require"=>"请选择服务项目"
    ];
    protected $scene = [
        "add" => ['number', 'old_price', 'price','service']
    ];
}